package domain;
import aima.core.agent.impl.DynamicAction;
import aima.core.util.datastructure.XYLocation;

public class PacmanAction extends DynamicAction {
	
	public static final String MOVE_UP = "NORTH";
	public static final String MOVE_DOWN = "SOUTH";
	public static final String MOVE_RIGHT = "EAST";
	public static final String MOVE_LEFT = "WEST";
	
	public static final String ATTRIBUTE_PACMAN_LOCATION = "pacmanLocation";
	
	public PacmanAction(String type, XYLocation pacmanLocation) {
		super(type);
		setAttribute(ATTRIBUTE_PACMAN_LOCATION, pacmanLocation);
	}
	
	public XYLocation getLocation() {
		return (XYLocation) getAttribute(ATTRIBUTE_PACMAN_LOCATION);
	}
	
	@Override
	public String toString() {
		return getName();
	}

}
